home *** CD-ROM | disk | FTP | other *** search
- on(press){
- if(getProperty("catchall", _visible) eq "0")
- {
- set("_level0/ch_shell/call:colourObject",_target add "/buttonMain");
- set("_level0/ch_shell/call:colourInstance","colour");
- set("_level0/ch_shell/call:methodName","rollover");
- call("_level0/ch_shell/call:colourMethod");
- set("_level40/sound/lib:sound","91");
- call("_level40/sound/lib:play");
- setProperty("catchAll", _visible, "1");
- if(_name.substr("1","2") eq eval("_level0:focus"))
- {
- setProperty("popupmenu", _visible, "1");
- setProperty("popupmenu/popTp", _visible, "1");
- }
- }
- else if(_name.substr("1","2") eq eval("_level0:focus"))
- {
- set("_level0/ch_shell/call:colourObject",_target add "/buttonMain");
- set("_level0/ch_shell/call:colourInstance","colour");
- set("_level0/ch_shell/call:methodName","clear");
- call("_level0/ch_shell/call:colourMethod");
- path = "_level15/" add eval("_level0:focus") add "/mt/codelib:";
- if(eval(path add "currentview") eq "task" or eval(path add "currentview") eq "taskcard")
- {
- set(path add "currentview","day");
- set(path add "startday","");
- set(path add "startmonth","");
- set(path add "startyear","");
- check = "1";
- call(path add "goto");
- }
- else
- {
- check = "0";
- }
- setProperty("popupmenu", _visible, "0");
- setProperty("catchAll", _visible, "0");
- if(eval("_level0:" add eval("_level0:focus") add "_module") ne option and option ne "" and check ne "1")
- {
- set("_level0:next",option);
- set("_level40/sound/lib:sound","90");
- call("_level40/sound/lib:play");
- tellTarget("_level0/loader")
- {
- gotoAndPlay("loadmodule");
- }
- set("_level0:" add eval("_level0:focus") add "_module",option);
- set("_level0/data:" add option add "_mm_buttonpanel",eval("_level0:focus"));
- set("_level0/build:modulemm",option);
- call("_level0/build:build my menu");
- }
- }
- }
-